#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "ControlCAN.h"
#include "get_can_data.h"
#include <QDateTime>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
extern int TimeOut;
class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    QString hex2Str(unsigned char *in, int len);
    void CAN0_Send_fun(QString sendMsg);
    void Str2CharSplitBlank(QString s, uchar *c,uchar *len);

private slots:
    void on_pushButton_clicked();
    unsigned long Str_into_ULong(QString s);

    void RealTimeUpdateMsg_CAN0();
    void AddRowRecv_CAN0(PVCI_CAN_OBJ Recv);
    void on_pushButton_2_clicked();

private:
    Ui::Widget *ui;
    QTimer *ShowDataTimer;
    Get_CAN_Data *rcvThread;
    Any_CAN_Data *AnyThread;
};
#endif // WIDGET_H
